package com.qingyun.system.model.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

@Setter
@Getter
@NoArgsConstructor
public class WebSocketVO implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    // 发送方账号
    private String fromUserName;
    // 接收方账号
    private String toUserName;
    // 发送方角色
    private String role;
    // 发送内容
    private String content;
    // 公司id
    private Long companyId;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
}
